from tortoise import fields
from .base import TimestampMixin

class Document(TimestampMixin):
    """文档模型"""
    id = fields.IntField(pk=True)
    title = fields.CharField(max_length=200, description="文档标题")
    description = fields.TextField(null=True, description="文档描述")
    file_path = fields.CharField(max_length=500, description="文件路径")
    file_type = fields.CharField(max_length=50, description="文件类型")
    total_pages = fields.IntField(description="总页数")
    status = fields.CharField(max_length=20, description="处理状态")
    
    class Meta:
        table = "documents" 